public class ThreadDemo extends Thread {
	public void run(){
		for(int i=0;i<100;i++){
			System.out.println(this.getName()+":"+i);
		}
	}

	public static void main(String[] args) {
		ThreadDemo td =	new ThreadDemo();
		td.start();
		for(int i=0;i<100;i++){
			System.out.println(Thread.currentThread().getName()+":"+i);
		}
		

	}

}